#include "stdafx.h"
#include "Localize.h"
#include "InstanceTouch.h"

DECL_INSTANCE_TOUCH(ETouch_Localize);

struct  LocalizeDefReflectionRegister
{
	LocalizeDefReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(LocalizeItem,m_iID,INVALID_ID).Editor_SetAsPrimaryKey();
		REGISTER_REFLECTION_MEMBER(LocalizeItem,m_sDisplayName,std::string("DisplayName")).Editor_SetAsDisplayName();
		REGISTER_REFLECTION_MEMBER(LocalizeItem,m_sTagName,std::string("TagName")).Editor_SetAsRaw();

		GlobalClassManager::Instance().RegisterClass(LocalizeItem::s_GetReflection(),eDefaultDef_LocalizeDic);
		GlobalDefManager::Instance().RegisterDefManger(&LocalizeDefManager::Instance());
	}
}______localizedefreflectionregister;